]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
global: Make timestamp parameter unsigned
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 27 Jul 2016 13:46:38 +0000 (15:46 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 11 Aug 2016 07:04:22 +0000 (09:04 +0200)
Negative values don't make sense to timestamps, and an unsigned
timestamp as returned by shell_global_get_current_time() or
Gdk/Clutter events may exceed the range of signed integers.

https://bugzilla.gnome.org/show_bug.cgi?id=769216

src/shell-global.c
src/shell-global.h

index 2b6eb8f65315af5add3bd10c7fcf2508cc001984..480b2fe4d04d35a73e0914f8d38889a7f272eae2 100644 (file)
@@ -1583,7 +1583,7 @@ shell_global_get_current_time (ShellGlobal *global)
  */
 GAppLaunchContext *
 shell_global_create_app_launch_context (ShellGlobal *global,
-                                        int          timestamp,
+                                        guint32      timestamp,
                                         int          workspace)
 {
   GdkAppLaunchContext *context;
index c043f471403c36d0e893268c734be54074538492..47c441553cf5b2a90fe67cfbf35be715beed177e 100644 (file)
@@ -71,7 +71,7 @@ void     shell_global_sync_pointer              (ShellGlobal  *global);
 
 GAppLaunchContext *
          shell_global_create_app_launch_context (ShellGlobal  *global,
-                                                 int           timestamp,
+                                                 guint32       timestamp,
                                                  int           workspace);
 
 void     shell_global_play_theme_sound          (ShellGlobal *global,